import type { TPageParams } from '@/types/global'
import type { THotDetail } from '@/types/hot'
import { http } from '@/utils/http'

type THotParams = TPageParams & { subType?: string }
class HotApi {
  /**
   * 热门推荐：特惠推荐 爆款推荐 一站买全 新鲜好物，请求参数和返回结果都一致，封装成一个通过的接口
   */
  public static getHotListById(url: string, data?: THotParams) {
    return http<THotDetail>({
      url,
      data,
    })
  }
}

export default HotApi
